$(function(){
	//判断密码是否一致；
	$("input[name=password]").blur(function(){
		if($("input[name=password1]").attr("value")==$("input[name=password]").attr("value")){
			$(".pic2").attr("src",public+'/image/1.png');
		}else{
			$(".pic2").attr("src",public+'/image/2.png');
		}
	})
	$("input[name=password1]").blur(function(){
		if($("input[name=password1]").attr("value")==$("input[name=password]").attr("value")){
			$(".pic2").attr("src",public+'/image/1.png');
		}else{
			$(".pic2").attr("src",public+'/image/2.png');
		}
	})
	//判断QQ号是否正确；
	$("input[name=qq]").blur(function(){
		if($("input[name=qq]").attr("value")!=''){
			var s = /^[0-9]*$/;
			if(s.test($("input[name=qq]").attr("value"))){
				$(".pic1").attr("src",public+'/image/1.png');
			}else{
				$(".pic1").attr("src",public+'/image/2.png');
			}
		}
	})
	//判断E-MAIL是否正确；
	$("input[name=email]").blur(function(){
		if($("input[name=email]").attr("value")!=""){
			var s = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]+$/;
			if(s.test($("input[name=email]").attr("value"))){
				$(".pic3").attr("src",public+'/image/1.png');
			}else{
				$(".pic3").attr("src",public+'/image/2.png');
			}
		}
	})
	//判断手机号码是否正确；
	$("input[name=mobile]").blur(function(){
		if($("input[name=mobile]").attr("value")!=""){
			var s = /^0{0,1}(13[0-9]|15[7-9]|153|156|18[7-9])[0-9]{8}$/;
			if(s.test($("input[name=mobile]").attr("value"))){
				$(".pic4").attr("src",public+'/image/1.png');
			}else{
				$(".pic4").attr("src",public+'/image/2.png');
			}
		}
	})



	
})